﻿Public Class LanguagePickerDialog

    Public Property SelectedLanguage As String
    Public Property SelectedLanguageIndex As Integer


    Public Sub New(inputPrompt As String, initialLanguage As String)

        InitializeComponent()
        gb_LanguagePicker.Text = inputPrompt
        cmb_Language.Text = initialLanguage

    End Sub


    Private Sub btn_Accept_Click(sender As System.Object, e As System.EventArgs) Handles btn_Accept.Click
        SelectedLanguage = cmb_Language.Text
        SelectedLanguageIndex = cmb_Language.SelectedIndex
        DialogResult = Windows.Forms.DialogResult.Yes
    End Sub
End Class